<template>
  <div v-if="h5">
    <slot :components="item.components" />
  </div>
  <widget-form-item v-else :designer="designer" :widget-list="widgetList" :item="item" :index="index">
    <slot :components="item.components" />
  </widget-form-item>
</template>

<script>
import props from './props'
import field from './field'

export default {
  name: 'MCard',
  props,
  emits: ['update:modelValue'],
  setup(props, { emit }) {
    return field(props, emit)
  }
}
</script>
